package com.wwwc.index.ejb.user;

import java.util.ArrayList;
import java.util.Hashtable;
import javax.ejb.EJBObject;
import java.rmi.RemoteException;

public interface User extends EJBObject {
    public int tableExists(String table_name) throws RemoteException;
    public String createUserProfileTable() throws RemoteException;
    public boolean usernamePasswordCheck(String user_name, String password) throws RemoteException;
    public boolean usernameExists(String user_name) throws RemoteException;
    public boolean emailHasBeenRegisted(String email) throws RemoteException;
    public int addNewUser(String username, String password) throws RemoteException;
    public int addNewUserProfile(String user, String pass, int access_level, String email, String fname, String lname, 
				 String photo, String birth_day, String gender, String edu, String marital_status, 
				 String industry, String job_title, String phone_area_code, String zip, String country, 
				 String activ_code)  throws RemoteException; 
    public int activeUserAccount(String user, String code) throws RemoteException; 
    public ArrayList getUserProfileByEmail(String email) throws RemoteException; 
    public String getUserPassword(String username) throws RemoteException; 
    public Object getUserProfile(String username, String password) throws RemoteException; 
}
